
//
//  TextFieldTableCell.m
//  YeeShopProject
//
//  Created by Yee on 2017/6/19.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "TextFieldTableCell.h"

@implementation TextFieldTableCell

-(void)addOwnView{
    
    [super addOwnView];
    
    _textField=[[UITextField alloc] init];
    [_textField setBackgroundColor:[ UIColor whiteColor]];
    _textField.layer.borderColor=[UIColor whiteColor].CGColor;
    _textField.layer.borderWidth=0.5;
    _textField.layer.masksToBounds=YES;
    _textField.layer.cornerRadius=4;
    _textField.leftSpace=5.0f;
    _textField.placeholder=@"请输入协议名称";
    [self.contentView addSubview:_textField];
    
    [_textField mas_makeConstraints:^(MASConstraintMaker *make) {

        make.centerY.equalTo(self.contentView);
        make.left.equalTo(self.contentView).offset(100);
    }];
}
-(void)layoutSubviews{
    
    [super layoutSubviews];
    [self.contentView bringSubviewToFront:_textField];
}
@end
